String = serialize(DOM) serialize(DOM,fileName)
Serialise a DOM by transformation to a string or file
DOM: <java-object> org.apache.xerces.dom.DocumentImpl fileName: <string> (optional) valid filename
String: <string> if nargin == 1 the serialised DOM <boolean> if nargin == 2, 0 -> saving to fileName not successful 1 -> saving to fileName successful
obj = xml %create an empty xml object obj.date = now %add fields with values obj.type = 'test' save(obj,'test.xml') obj('test.xml') inspect(obj)